(function() {
	var skill = {
		//运行回调，完成支付
		endPayAch: function() {
			var user_id = this.user_id;
			var ach_id = this.ach_id;
			var ach = AchCon.get(ach_id);
			if (ach) {
				var bus = BusCon.get(ach.info.bus_id);
				bus._state_ach_ol未付款_to_ol未发货(ach_id);
				console.log(user_id, "完成支付了订单号为：“", ach_id, "”的订单，原价为：人民币额度：", ach.info.price, "最终价格为：", ach.cash);
				
			} else {
				throwCusError("找不到指定的订单");
			}
		},
		//代码片段
		_getAch: function() {
			var ach_id = this.ach_id;
			var ach = AchCon.get(ach_id);
			return ach
		},
		getAchDetail: function() {
			var ach = this._getAch();
			return $Object.clone(ach);
		},
		getBusInfo: function() {
			var ach_id = this.ach_id;
			var ach = AchCon.get(ach_id);
			var bus_id = ach.info.bus_id;
			var bus = BusCon.get(bus_id);
			return $Object.clone(bus);
		}
	}
	module.exports = skill;

	var db = require("../db/index");
	var UserCon = require("./_con");
	var BusCon = require("../bus/_con");
	var GoodsCon = require("../goods/_con");
	var AchCon = require("../ach/_con");
	var BuffCon = require("../buff/_con");
	var achBuffCB = require("../ach/ach_buff_cb");
	var config = require("../_include/config");
	var data_cut = require("../_include/data_cut");
	var $Array = require("../_include/$.Array");
	var $Object = require("../_include/$.Object");


}());